package JUNHO.conjuntos;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ClassificandoArrayList14
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		List s = new ArrayList();
		s.add(new Car(123,"Luxo"));
		s.add(new Car(124,"Popular"));
		s.add(new Car(122,"Medio"));
		s.add(new Car(123,"Luxo"));
		System.out.println(s);
//		Collections.sort(s);
		Collections.sort(s, new ComparatorCarro());
		System.out.println(s);

	}

}
